package cn.sxjzit.officlal.entity;

import java.util.List;

public class Role {
    private int id;
    private String name;
    private String role_desc;
    private List<UserRoot> userRootList;


    public Role() {
    }

    public Role(int id, String name, String role_desc, List<UserRoot> userRootList) {
        this.id = id;
        this.name = name;
        this.role_desc = role_desc;
        this.userRootList = userRootList;
    }

    /**
     * 获取
     * @return id
     */
    public int getId() {
        return id;
    }

    /**
     * 设置
     * @param id
     */
    public void setId(int id) {
        this.id = id;
    }

    /**
     * 获取
     * @return name
     */
    public String getName() {
        return name;
    }

    /**
     * 设置
     * @param name
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * 获取
     * @return role_desc
     */
    public String getRole_desc() {
        return role_desc;
    }

    /**
     * 设置
     * @param role_desc
     */
    public void setRole_desc(String role_desc) {
        this.role_desc = role_desc;
    }

    /**
     * 获取
     * @return UserList
     */
    public List<UserRoot> getUserList() {
        return userRootList;
    }

    /**
     * 设置
     * @param userRootList
     */
    public void setUserList(List<UserRoot> userRootList) {
        this.userRootList = userRootList;
    }

    public String toString() {
        return "Role{id = " + id + ", name = " + name + ", role_desc = " + role_desc + ", UserList = " + userRootList + "}";
    }
}
